#include "TaskFactory.h"
#include "TaskAgricul.h"
#include "TaskCommerce.h"

TaskFactory::TaskFactory()
{
}

Task *TaskFactory::createTask(TaskType type)
{
    Task *task=NULL;
    switch(type)
    {
    case FlgTaskAgricul:
        task=new TaskAgricul();
        break;
    case FlgTaskCommerce:
        task =new TaskCommerce();
        break;
    }
    return task;
}
